package com.elasticsearchtemplate.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.time.LocalDate;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Emp {
    private int id;
    private int age;
    private String name;
    private String birthplace;
    //@Field(type = FieldType.Date,format = {},pattern = "yyyy-MM-dd")
    private LocalDate birthday;
}
